package com.aoxin.mapper.course.systemCourse;



import org.apache.ibatis.annotations.Param;

import com.aoxin.model.course.SchoolCourseToPage;

import java.util.LinkedList;
import java.util.Map;

public interface SchoolCourseToPageDao {
    /**
     * 新增学校课程包对应课程
     *
     * @param schoolCourseToPage
     * @return
     */
	Integer insertSchoolCourseToPage(SchoolCourseToPage schoolCourseToPage);

    /**
     * 同一个学校同一个课程包不能有相同的课程
     *
     * @param schoolId
     * @param schoolCoursePageId
     * @param schoolCourseId
     * @return
     */
    Integer checkSchoolCourseToPage(@Param("schoolId") String schoolId, @Param("schoolCoursePageId") Integer schoolCoursePageId, @Param("schoolCourseId") Integer schoolCourseId);

    /**
     * 查询学校课程包对应课程
     * @param schoolId
     * @param schoolCoursePageId
     * @return
     */
    LinkedList<Map<String, Object>> getSchoolCourseToPage(@Param("schoolId") String schoolId, @Param("schoolCoursePageId") Integer schoolCoursePageId);

    /**
     * 修改学校课程包对应课程
     * @param schoolCourseToPageId
     * @return
     */
    Integer updateSchoolCourseToPage(Integer schoolCourseToPageId);

    /**
     * 删除学校课程包对应课程
     * @param schoolCourseToPageId
     * @return
     */
    Integer  deleteSchoolCourseToPage(Integer schoolCourseToPageId);
    
    /**
     * 查看课程包课程的数量
     * @param schoolCourseToPageId
     * @return
     */
    Integer getCourseCount(Integer schoolCourseToPageId);
    
    Integer insertSchoolCourseToPageOther(Map<String,Object> map);
}